package com.xuhai.blog19.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuhai.blog19.admin.entity.ArticleCategoryEntity;
import com.xuhai.blog19.admin.entity.ArticleEntity;
import com.xuhai.blog19.admin.entity.CategoryEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author PangJunjie
 * @Date 2023/2/8/008
 */
@Mapper
public interface ArticleCategoryDao extends BaseMapper<ArticleCategoryEntity> {
    List<ArticleEntity> getArticleByCategoryId(Integer categoryId);

    List<CategoryEntity> getCategoryByArticleId(Integer articleId);
}
